import {get,post,put,del} from './request'


export const Apilogin = (params) => post('api/auth/login',params) //登录
export const ApipasswordChange = (params) => post('api/auth/password/change',params) //修改
export const ApipasswordReset = (params) => post('api/auth/password/reset',params)  //重置
export const Apilogout = (params) => post('api/auth/logout',params) //退出登录

//一级科室
export const Apidepartments = (params) => get('api/departments',params)   //列表
export const ApidepartmentsInfo = (params) => get(`api/departments/${params}`) //详情
export const ApidepartmentsAdd = (params) => post(`api/departments`,params)  //新建
export const ApidepartmentsPut = (params,id) => put(`api/departments/${id}`,params)  //修改
export const ApidepartmentsDel = (id) => del(`api/departments/${id}`,)  //删除

//二级科室
export const Apisub_departments = (params) => get('api/sub_departments',params)   //列表
export const Apisub_departmentsInfo = (params) => get(`api/sub_departments/${params}`) //详情
export const Apisub_departmentsAdd = (params) => post(`api/sub_departments`,params)  //新建
export const Apisub_departmentsPut = (params,id) => put(`api/sub_departments/${id}`,params)  //修改
export const Apisub_departmentsDel = (id) => del(`api/sub_departments/${id}`,)  //删除

//职员管理
export const Apiemployees = (params) => get('api/employees',params)  //列表
export const ApiemployeesInfo = (params) => get(`api/employees/${params}`,)  //详情
export const ApiemployeesAdd = (params) => post(`api/employees`,params)  //新建
export const ApiemployeesPut = (params,id) => put(`api/employees/${id}`,params)  //修改
export const ApiemployeesDel = (id) => del(`api/employees/${id}`,)  //删除

//权限管理
export const Apipermissions = (params) => get('api/permissions',params)  //列表
export const ApipermissionsAdd = (params) => post(`api/permissions`,params)  //新建
export const ApipermissionsPut = (params,id) => put(`api/permissions/${id}`,params)  //修改
export const ApipermissionsDel = (id) => del(`api/permissions/${id}`,)  //删除

//角色管理
export const Apiroles = (params) => get('api/roles',params)  //列表
export const ApirolesAdd = (params) => post(`api/roles`,params)  //新建
export const ApirolesPut = (params,id) => put(`api/roles/${id}`,params)  //修改
export const ApirolesDel = (id) => del(`api/roles/${id}`,)  //删除

//角色权限绑定记录
export const Apirolepermissions = (params) => get('api/rolepermissions',params)  //列表
export const ApirolepermissionsAdd = (params) => post(`api/rolepermissions`,params)  //新建
export const ApirolepermissionsPut = (params,id) => put(`api/rolepermissions/${id}`,params)  //修改
export const ApirolepermissionsDel = (id) => del(`api/rolepermissions/${id}`,)  //删除

//职员角色授权记录
export const Apiemployeeroles = (params) => get('api/employeeroles',params)  //列表
export const ApiemployeerolesAdd = (params) => post(`api/employeeroles`,params)  //新建
export const ApiemployeerolesPut = (params,id) => put(`api/employeeroles/${id}`,params)  //修改
export const ApiemployeerolesDel = (id) => del(`api/employeeroles/${id}`,)  //删除

//菜单
export const ApimenusUser = (params) => get('api/menus/user',params)  //查询用户菜单
export const Apimenus = (params) => get('api/menus',params)  //列表
export const ApimenusAdd = (params) => post(`api/menus`,params)  //新建
export const ApimenusPut = (params,id) => put(`api/menus/${id}`,params)  //修改
export const ApimenusDel = (id) => del(`api/menus/${id}`,)  //删除


//数据导入 
export const ApidatasImport = (params,config) => post(`api/datas/import`,params,config)  //新建

// 业务收入核算
export const ApiincomeList = (params) => post(`api/income/list`,params)  //收入项目列表数据


//经济核算
export const Apidirectcost = (params) => get(`api/directcost`,params)  //直接费用

//主要收入数据
export const Apimainincome = (params) => get('api/mainincome',params)  //列表
export const ApimainincomeAdd = (params) => post(`api/mainincome`,params)  //新建
export const ApimainincomePut = (params,id) => put(`api/mainincome/${id}`,params)  //修改
export const ApimainincomeDel = (id) => del(`api/mainincome/${id}`,)  //删除

//业务收入数据
export const Apigeneralizedincome = (params) => get('api/generalizedincome',params)  //列表

//考勤
export const Apiemployeeattendance = (params) => get('api/employeeattendance',params)  //列表
export const ApiemployeeattendanceAdd = (params) => post(`api/employeeattendance`,params)  //新建
export const ApiemployeeattendancePut = (params,id) => put(`api/employeeattendance/${id}`,params)  //修改
export const ApiemployeeattendanceDel = (id) => del(`api/employeeattendance/${id}`,)  //删除

//固定资产
export const Apifixedassets = (params) => get('api/fixedassets',params)  //列表
export const ApifixedassetsAdd = (params) => post(`api/fixedassets`,params)  //新建
export const ApifixedassetsPut = (params,id) => put(`api/fixedassets/${id}`,params)  //修改
export const ApifixedassetsDel = (id) => del(`api/fixedassets/${id}`,)  //删除

//领用卫生材料
export const Apiusedsanitarymaterial = (params) => get('api/usedsanitarymaterial',params)  //列表
export const ApiusedsanitarymaterialAdd = (params) => post(`api/usedsanitarymaterial`,params)  //新建
export const ApiusedsanitarymaterialPut = (params,id) => put(`api/usedsanitarymaterial/${id}`,params)  //修改
export const ApiusedsanitarymaterialDel = (id) => del(`api/usedsanitarymaterial/${id}`,)  //删除

//领用行政材料
export const Apiusedgeneralmaterial = (params) => get('api/usedgeneralmaterial',params)  //列表
export const ApiusedgeneralmaterialAdd = (params) => post(`api/usedgeneralmaterial`,params)  //新建
export const ApiusedgeneralmaterialPut = (params,id) => put(`api/usedgeneralmaterial/${id}`,params)  //修改
export const ApiusedgeneralmaterialDel = (id) => del(`api/usedgeneralmaterial/${id}`,)  //删除